<!-- 国家选择
    应用于：
        发布供求
   -->
<template>
<div>
    <el-select v-model="value" @change="change" transfer :placeholder="placeholder" clearable filterable>
        <el-option v-for="item in countryList" :key="item.value" :label="item.label" :value="item.label">
        </el-option>
    </el-select>
</div>
</template>

<script>
import country from "@/components/data/region/country.js";
export default {
    props: {
        placeholder: {
            type: String,
            default: 'Please choose'
        }
    },
    computed: {
        countryList() {
            return country;
        },
    },
    data() {
        return {
            value: [],
        }
    },
    mounted() {
    },
    methods: {
        change(value) {
            this.$emit('change', value)
        },
    }
}
</script>

<style lang="scss" scoped>
.el-select {
    width: 100%;
}
</style>
